import { Module } from '@nestjs/common';

import { RouterModule } from '@nestjs/core';

import { StorageModule } from './storage/storage.module';
import { UploadModule } from './upload/upload.module';
import { ExcelModule } from './excel/excel.modules';

//存储 上传
const modules = [StorageModule, UploadModule, ExcelModule];

@Module({
  imports: [
    ...modules,
    RouterModule.register([
      {
        path: 'tools',
        module: ToolsModule,
        children: [...modules],
      },
    ]),
  ],
  exports: [...modules],
})
export class ToolsModule {}
